'use strict';

let request = {};

let baseUrl;

function get(path) {
    return new Promise(function (resolve, reject) {
        let fullPath = baseUrl ? baseUrl + path : path;
        $.get(fullPath, data => {
            resolve(data);
        })
    })
}

request.baseUrl=baseUrl;
request.get = get;